Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Retry in case of Capybara::Poltergeist::TimeoutError#9

Open
LeeXGreen wants to merge 2 commits intolaunchscout:masterfrom
LeeXGreen:fix_poltergeist_timeouts_clean
Open

Retry in case of Capybara::Poltergeist::TimeoutError#9
LeeXGreen wants to merge 2 commits intolaunchscout:masterfrom
LeeXGreen:fix_poltergeist_timeouts_clean

Conversation

@LeeXGreen
Copy link
Copy Markdown

When running Jasmine specs, sometimes the whole capybara -> poltergeist -> phantomjs chain hangs. This presents itself as a TimeoutError.

This quick little hack just retries failing specs up to 4 times before giving up. Each time it encounters a timeout, we restart the PhantomJS driver.

For more info, see the following:

teampoltergeist/poltergeist#375
ariya/phantomjs#12234
https://gist.github.com/afn/c04ccfe71d648763b306

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant